import request from '@/util/request'

export default {
    // 1. 查询所有学生
    findUsers() {
        return request({
            url: '/user/list',
            method: 'get',
        })
    },

    findByPage(page,pageSize){
        return request({
            url: `/user/findByPage/${page}/${pageSize}`,
            method: 'get',
        })
    },

    search(page,pageSize,data){
        return request({
            url: `/user/search/${page}/${pageSize}`,
            method: 'post',
            data
        })
    },

    save(url,method,data){
        return request({
            url,
            method,
            data
        })
    },
    deleteUser(ids){
        return request({
            url:`/user/delete/${ids}`,
            method:"delete"
        })
    },

}